semLh

fun Number.semLh(context: Context): Float

EN Extension for Int with dynamic scaling based on Smallest Width (swDP) (WITHOUT FONT SCALE), but in landscape orientation it acts as Screen Height (hDP). Usage example: 32.semLh(context).